home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.5 / am / ltlib.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.6 KB  |  72 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
  3. ## Free Software Foundation, Inc.
  4.  
  5. ## This program is free software; you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation; either version 2, or (at your option)
  8. ## any later version.
  9.  
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ## GNU General Public License for more details.
  14.  
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  18. ## 02111-1307, USA.
  19.  
  20. ## ------------ ##
  21. ## Installing.  ##
  22. ## ------------ ##
  23.  
  24. if %?INSTALL%
  25. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  26. ?EXEC?.PHONY install-exec-am: install-%DIR%LTLIBRARIES
  27. ?!EXEC?.PHONY install-data-am: install-%DIR%LTLIBRARIES
  28. install-%DIR%LTLIBRARIES: $(%DIR%_LTLIBRARIES)
  29.     @$(NORMAL_INSTALL)
  30.     $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir)
  31. ## Funny invocation because Makefile variable can be empty, leading to
  32. ## a syntax error in sh.
  33.     @list='$(%DIR%_LTLIBRARIES)'; for p in $$list; do \
  34.       if test -f $$p; then \
  35. ## Note that we explicitly set the libtool mode.  This avoids any lossage
  36. ## if the program doesn't have a name that libtool expects.
  37. ## Use INSTALL and not INSTALL_DATA because libtool knows the right
  38. ## permissions to use.
  39. ?LIBTOOL?        echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(%NDIR%dir)/$$p"; \
  40. ?LIBTOOL?        $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(%NDIR%dir)/$$p; \
  41. ?!LIBTOOL?        echo " $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(%NDIR%dir)/$$p"; \
  42. ?!LIBTOOL?        $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(%NDIR%dir)/$$p; \
  43.       else :; fi; \
  44.     done
  45. endif %?INSTALL%
  46.  
  47.  
  48. ## -------------- ##
  49. ## Uninstalling.  ##
  50. ## -------------- ##
  51.  
  52. if %?INSTALL%
  53. .PHONY uninstall-am: uninstall-%DIR%LTLIBRARIES
  54. uninstall-%DIR%LTLIBRARIES:
  55.     @$(NORMAL_UNINSTALL)
  56.     @list='$(%DIR%_LTLIBRARIES)'; for p in $$list; do \
  57. ?LIBTOOL?      echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(%NDIR%dir)/$$p"; \
  58. ?LIBTOOL?      $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(%NDIR%dir)/$$p; \
  59. ?!LIBTOOL?      echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$p"; \
  60. ?!LIBTOOL?      rm -f $(DESTDIR)$(%NDIR%dir)/$$p; \
  61.     done
  62. endif %?INSTALL%
  63.  
  64.  
  65. ## ---------- ##
  66. ## Cleaning.  ##
  67. ## ---------- ##
  68.  
  69. .PHONY clean-am: clean-%DIR%LTLIBRARIES
  70. clean-%DIR%LTLIBRARIES:
  71.     -test -z "$(%DIR%_LTLIBRARIES)" || rm -f $(%DIR%_LTLIBRARIES)
  72.